package member

/*
CREATE TABLE `member_address` (
  `address_id` bigint(11) NOT NULL AUTO_INCREMENT,
  `user_id` varchar(255) NOT NULL,
  `consigner` varchar(50) NOT NULL,
  `phone` varchar(20) NOT NULL,
  `province_id` int(11) NOT NULL,
  `city_id` int(11) NOT NULL,
  `district_id` int(11) NOT NULL,
  `address` varchar(255) NOT NULL DEFAULT '',
  `is_default` int(11) NOT NULL DEFAULT '0',
  PRIMARY KEY (`address_id`)
) ENGINE=MyISAM AUTO_INCREMENT=5 DEFAULT CHARSET=utf16;
*/

type MemberAddress struct {
	AddressId  int64
	UserId     string
	Consigner  string
	Phone      string
	ProvinceId int
	CityId     int
	DistrictId int
	Address    string
	IsDefault  byte
}

func (model *MemberAddress) TableName() string {
	return "member_address"
}
